<template>
  <div>
    <el-container style="height: 100vh;">
      <el-aside width="auto">
        <common-aside />
      </el-aside>
      <el-container>
        <el-header>
          <common-header />
        </el-header>
        <common-tabs />
        <el-main class="scrollable-content">
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import CommonAside from '../components/CommonAside.vue';
import CommonHeader from '../components/CommonHeader.vue';
import CommonTabs from '../components/CommonTabs.vue';

export default {
  components: {
    CommonAside,
    CommonHeader,
    CommonTabs
  }
}
</script>

<style scoped>
.el-header {
  padding: 0;
}

/* 添加以下样式 */
.scrollable-content {
  height: calc(100vh - 60px - 40px); /* 减去header和tabs的高度 */
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}
</style>